package com.ruoyi.custom.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import com.ruoyi.custom.domain.Loan;

/**
 * 客户放款Mapper接口
 * 
 * @author ruoyi
 * @date 2025-07-25
 */
public interface LoanMapper  extends BaseMapper<Loan>
{
    /**
     * 查询客户放款
     * 
     * @param id 客户放款主键
     * @return 客户放款
     */
    public Loan selectLoanById(Long id);

    /**
     * 查询客户放款列表
     * 
     * @param loan 客户放款
     * @return 客户放款集合
     */
    public List<Loan> selectLoanList(Loan loan);

    /**
     * 新增客户放款
     * 
     * @param loan 客户放款
     * @return 结果
     */
    public int insertLoan(Loan loan);

    /**
     * 修改客户放款
     * 
     * @param loan 客户放款
     * @return 结果
     */
    public int updateLoan(Loan loan);

    /**
     * 删除客户放款
     * 
     * @param id 客户放款主键
     * @return 结果
     */
    public int deleteLoanById(Long id);

    /**
     * 批量删除客户放款
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteLoanByIds(Long[] ids);
}
